package test04;

public class Reg1 {
    public static void main(String[] args) {
        String str="abc.123";
        String reg="[a-zA-Z]*[.]{1}[0-9]*";
        System.out.println(str.matches(reg));
    }
}
